package com.atwisdom.star.core.bsl.planner.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductBomSummary {
    private LocalDate deliveryDate;  //记录销售交货日期
    private LocalDate planEndDate;  //计划结束日期
    private String materialBCode;
    private double planQuantity = 0; //计划生产、采购、委外数量
    private LocalDateTime startTime; //计划开始时间
    private LocalDateTime endTime; //计划结束时间
    //是否试制
    private boolean isTrial =false;

    private String materialAttr;   //物料属性: purchasing: 采购件、produce: 制造件、outsourcing: 外协件
    private List<Long> equipmentList;

    //空闲时间
    private double freeDuration;

    //时长（小时）（生产一个产品耗时） 节拍：每分钟生产个数
    private double produceAvgDuration;
    private double produceMinBatchDuration; //最小批量生产最小耗时

    private double produceLeadTime; //生产提前期(小时)
    private double produceDuration;   //生产总时长(小时)

    private int purchasingPeriod; //采购周期(天)
    private int outsourcingPeriod; //委外周期(天)
}
